package com.hsy.crm.web.web.system;

import com.hsy.crm.web.domain.cm.Response;
import com.hsy.crm.web.domain.vo.menu.MenuPageVo;
import com.hsy.crm.web.service.impl.MenuService;
import com.hsy.crm.web.web.BaseAction;
import com.hsy.crm.web.domain.cm.Response;
import com.hsy.crm.web.domain.vo.menu.MenuPageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
public class MenuAction extends BaseAction {

    @Autowired
    MenuService menuService;

    @RequestMapping("/find")
    public String page(MenuPageVo menuPageVo) {
        return Response.body(menuService.find(menuPageVo));
    }

}
